import {request} from '@/utils/request.js'
export function getBannerAPI() {
	return request({
		url: '/homeBanner',
	})
}

// 推荐
export function getRecommendAPI() {
	return request({
		url: '/randomWall',
	})
}

// 公告/wallNewsList
export function getNoticeAPI(data) {
	return request({
		url: '/wallNewsList',
		data
	})
}


export function getNoticeDetailAPI(data) {
	return request({
		url: '/wallNewsDetail',
		data
	})
}

// 壁纸分类
export function getClassifyAPI(data) {
	return request({
		url: '/classify',
		data
	})
}

// 分类列表
export function getClassListAPI(data) {
	if (data.classid) {
		return request({
			url: '/wallList',
			data
		})
	} else {
		return request({
			url: '/userWallList',
			data
		})
	}
	
}


// 评分
export function setupScoreAPI(data) {
	return request({
		url: '/setupScore',
		data
	})
}

// 下载
export function writeDownLoadAPI(data) {
	return request({
		url: '/downloadWall',
		data
	})
}

// 适配分享预览页
export function detailWallAPI(data) {
	return request({
		url: '/detailWall',
		data
	})
}

// 用户个人信息
export function userInfoAPI() {
	return request({
		url: '/userInfo'
	})
}

// 搜索
export function searchAPI(data) {
	return request({
		url: '/searchWall',
		data
	})
}
